﻿using System.Data;

using DAL;
using Model;

namespace BLL
{
    public  class GuidBLL
    {
        public GuidBLL()
        { }

        public DataSet GetGuidByActivity(string activityId)
        {
            return GuidNoDAL.GetGuidByActivity(activityId);
        }

     //   public static DataSet GetGuid
        /// <summary>
        /// 增加一条数据
        /// </summary>
        public int Add(GuidNo  model)
        {
            //TODO: ADD  return EnterpriseUserDAL.Add(model);
            return GuidNoDAL.Add(model);
        }

        /// <summary>
        /// 删除一条数据
        /// </summary>
        public void Delete(int guidStr)
        {
            GuidNoDAL.Delete(guidStr);
        }

        public int GetStatus(string guid)
        {
            return GuidNoDAL.GetStatus(guid);
        }
        public int GetActivityId(string guid)
        {
            return GuidNoDAL.GetActivityId(guid);
        }

        public int UpdateStatus(string guid,int guidStatus)
        {
            return GuidNoDAL.UpdateStatus(guid, guidStatus);
        }
    }
}
